

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/blog/img/maple_leaf.png">
  <link rel="icon" href="/blog/img/maple_leaf.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="枫🍁川">
  <meta name="keywords" content="">
  
    <meta name="description" content="前言  没有太重视“命名”这个似乎不在技术范畴之内的东西，随着项目更新迭代变得庞大，维护起来欲哭无泪。尤其是在CSS中，一个高效的命名规范到底有多重要？   代码结构更加清晰有意义 维护变得简单 同事看代码的时候不骂街了     之前看到过一种丑丑的命名（”__”和”–”）不以为然，这正是本文探讨的主题——BEM命名规范。 1. BEM简介  BEM(Block Element Modifier)">
<meta property="og:type" content="article">
<meta property="og:title" content="css 命名规范 BEM">
<meta property="og:url" content="https://destiny-yyc.github.io/version-detail.html">
<meta property="og:site_name" content="枫🍁川的博客">
<meta property="og:description" content="前言  没有太重视“命名”这个似乎不在技术范畴之内的东西，随着项目更新迭代变得庞大，维护起来欲哭无泪。尤其是在CSS中，一个高效的命名规范到底有多重要？   代码结构更加清晰有意义 维护变得简单 同事看代码的时候不骂街了     之前看到过一种丑丑的命名（”__”和”–”）不以为然，这正是本文探讨的主题——BEM命名规范。 1. BEM简介  BEM(Block Element Modifier)">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2022-04-10T16:00:00.000Z">
<meta property="article:modified_time" content="2023-03-20T02:02:59.249Z">
<meta property="article:author" content="枫🍁川">
<meta name="twitter:card" content="summary_large_image">
  
  
    <meta name="referrer" content="no-referrer-when-downgrade">
  
  
  <title>css 命名规范 BEM - 枫🍁川的博客</title>

  <link  rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />



  <link  rel="stylesheet" href="https://lib.baomitu.com/github-markdown-css/4.0.0/github-markdown.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/hint.css/2.7.0/hint.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/blog/css/main.css" />


  <link id="highlight-css" rel="stylesheet" href="/blog/css/highlight.css" />
  
    <link id="highlight-css-dark" rel="stylesheet" href="/blog/css/highlight-dark.css" />
  




  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    Fluid.ctx = Object.assign({}, Fluid.ctx)
    var CONFIG = {"hostname":"destiny-yyc.github.io","root":"/blog/","version":"1.9.2","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/blog/local-search.xml"};

    if (CONFIG.web_analytics.follow_dnt) {
      var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
      Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
    }
  </script>
  <script  src="/blog/js/utils.js" ></script>
  <script  src="/blog/js/color-schema.js" ></script>
  


  
<meta name="generator" content="Hexo 6.2.0"></head>


<body>
  

  <header>
    

<div class="header-inner" style="height: 70vh;">
  <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/blog/">
      <strong>枫🍁川的博客</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
          
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

  

<div id="banner" class="banner" parallax=true
     style="background: url('/blog/img/default.png') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">
    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
      <div class="banner-text text-center fade-in-up">
        <div class="h2">
          
            <span id="subtitle" data-typed-text="css 命名规范 BEM"></span>
          
        </div>

        
          
  <div class="mt-3">
    
      <span class="post-meta mr-2">
        <i class="iconfont icon-author" aria-hidden="true"></i>
        枫🍁川
      </span>
    
    
      <span class="post-meta">
        <i class="iconfont icon-date-fill" aria-hidden="true"></i>
        <time datetime="2022-04-11 00:00" pubdate>
          2022年4月11日
        </time>
      </span>
    
  </div>

  <div class="mt-1">
    
      <span class="post-meta mr-2">
        <i class="iconfont icon-chart"></i>
        
          2.5k 字
        
      </span>
    

    

    
    
  </div>


        
      </div>

      
    </div>
  </div>
</div>

</div>

  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="side-col d-none d-lg-block col-lg-2">
      

    </div>

    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">css 命名规范 BEM</h1>
            
            
              <div class="markdown-body">
                
                <h3 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h3><p>  没有太重视“命名”这个似乎不在技术范畴之内的东西，随着项目更新迭代变得庞大，维护起来欲哭无泪。尤其是在CSS中，一个高效的命名规范到底有多重要？</p>
<blockquote>
<ul>
<li>代码结构更加清晰有意义</li>
<li>维护变得简单</li>
<li>同事看代码的时候不骂街了</li>
</ul>
</blockquote>
<p>  之前看到过一种丑丑的命名（”__”和”–”）不以为然，这正是本文探讨的主题——BEM命名规范。</p>
<h3 id="1-BEM简介"><a href="#1-BEM简介" class="headerlink" title="1. BEM简介"></a>1. BEM简介</h3><p>  BEM(Block Element Modifier)是由Yandex(俄罗斯的网络服务门户之一)团队提出的一种前端命名规范，这里讲的BEM风格是经过改良的（没有具体阅读过相关文章，不探讨有关如何改良的细节）：</p>
<blockquote>
<ul>
<li>Block：块</li>
<li>Element：元素——块的组成部分</li>
<li>Modifier：修饰符——表示一种形态&#x2F;状态</li>
</ul>
</blockquote>
<div class="code-wrapper"><pre><code class="hljs css"><span class="hljs-selector-class">.block</span> &#123;&#125;
<span class="hljs-selector-class">.block__element</span> &#123;&#125;
<span class="hljs-selector-class">.block--modifier</span></code></pre></div>

<p>举一个很好理解的例子：</p>
<div class="code-wrapper"><pre><code class="hljs css">人            <span class="hljs-selector-id">#Block</span>
人__手          <span class="hljs-selector-id">#Element</span>
人__手--小手      <span class="hljs-selector-id">#Modifier</span>
人__手--大手      <span class="hljs-selector-id">#Modifier</span>
人__脚          <span class="hljs-selector-id">#Element</span>

人--男人        <span class="hljs-selector-id">#Modifier</span>
人--男人__手      <span class="hljs-selector-id">#Element</span>
人--男人__脚      <span class="hljs-selector-id">#Element</span>

人--女人        <span class="hljs-selector-id">#Modifier</span>
人--女人__手      <span class="hljs-selector-id">#Element</span>
人--女人__脚      <span class="hljs-selector-id">#Element</span></code></pre></div>

<h3 id="2-BEM命名-vs-传统命名"><a href="#2-BEM命名-vs-传统命名" class="headerlink" title="2. BEM命名 vs 传统命名"></a>2. BEM命名 vs 传统命名</h3><p>好与不好，代码为证：</p>
<h4 id="2-1-BEM命名"><a href="#2-1-BEM命名" class="headerlink" title="2.1 BEM命名"></a>2.1 BEM命名</h4><div class="code-wrapper"><pre><code class="hljs vue">&lt;!-- app.vue --&gt;
&lt;aside class=&quot;aside&quot;&gt;
  &lt;!-- 显示/隐藏侧边栏 --&gt;
  &lt;img :class=&quot;[&#x27;aside__toggle--show&#x27;, &#123;&#x27;aside__toggle--hide&#x27;: isHide&#125;]&quot; /&gt;
  &lt;ul class=&quot;aside__menu&quot;&gt;
    &lt;li class=&quot;aside__menu__item&quot;&gt;首页&lt;/li&gt;
  &lt;/ul&gt;
&lt;/aside&gt;</code></pre></div>

<div class="code-wrapper"><pre><code class="hljs css"><span class="hljs-comment">/*css*/</span>
<span class="hljs-selector-class">.aside</span> &#123;&#125;
<span class="hljs-selector-class">.aside__toggle--show</span> &#123;&#125;
<span class="hljs-selector-class">.aside__toggle--hide</span> &#123;&#125;
<span class="hljs-selector-class">.aside__menu</span> &#123;&#125;
<span class="hljs-selector-class">.aside__menu__item</span> &#123;&#125;</code></pre></div>

<div class="code-wrapper"><pre><code class="hljs less/scss">/*scss或less*/
.aside &#123;
  &amp;__toggle &#123;
    &amp;--show &#123;&#125;
    &amp;--hide &#123;&#125;
  &#125;

  &amp;__menu &#123;
    &amp;__item &#123;&#125;
  &#125;
&#125;</code></pre></div>

<h4 id="2-2-传统命名"><a href="#2-2-传统命名" class="headerlink" title="2.2 传统命名"></a>2.2 传统命名</h4><div class="code-wrapper"><pre><code class="hljs vue">&lt;!-- app.vue --&gt;
&lt;aside class=&quot;aside&quot;&gt;
  &lt;!-- 显示/隐藏侧边栏 --&gt;
  &lt;img :class=&quot;[&#x27;toggle&#x27;, &#123;&#x27;hide&#x27;: isHide&#125;]&quot; /&gt;
  &lt;ul class=&quot;menu&quot;&gt;
    &lt;li class=&quot;item&quot;&gt;首页&lt;/li&gt;
  &lt;/ul&gt;
&lt;/aside&gt;</code></pre></div>

<div class="code-wrapper"><pre><code class="hljs css"><span class="hljs-comment">/* css */</span>
<span class="hljs-selector-class">.aside</span> &#123;&#125;
<span class="hljs-selector-class">.toggle</span> &#123;&#125;
<span class="hljs-selector-class">.menu</span> &#123;&#125;
<span class="hljs-selector-class">.item</span> &#123;&#125;</code></pre></div>

<p>当然也有一些针对传统命名的优化，尽管看起来清晰很多，但意图的表达仍然有些不明确</p>
<div class="code-wrapper"><pre><code class="hljs vue">&lt;!-- app.vue --&gt;
&lt;aside class=&quot;aside&quot;&gt;
  &lt;!-- 显示/隐藏侧边栏 --&gt;
  &lt;img :class=&quot;[&#x27;aside-toggle-show&#x27;, &#123;&#x27;aside-toggle-hide&#x27;: isHide&#125;]&quot; /&gt;
  &lt;ul class=&quot;aside-menu&quot;&gt;
    &lt;li class=&quot;aside-menu-item&quot;&gt;首页&lt;/li&gt;
  &lt;/ul&gt;
&lt;/aside&gt;</code></pre></div>

<div class="code-wrapper"><pre><code class="hljs css"><span class="hljs-comment">/*css*/</span>
<span class="hljs-selector-class">.aside</span> &#123;&#125;
<span class="hljs-selector-class">.aside-toggle-show</span> &#123;&#125;
<span class="hljs-selector-class">.aside-toggle-hide</span> &#123;&#125;
<span class="hljs-selector-class">.aside-menu</span> &#123;&#125;
<span class="hljs-selector-class">.aside-menu-item</span> &#123;&#125;</code></pre></div>

<div class="code-wrapper"><pre><code class="hljs scss/less">/*scss或less*/
.aside &#123;
  &amp;-toggle &#123;
    &amp;-show &#123;&#125;
    &amp;-hide &#123;&#125;
  &#125;
  &amp;-menu &#123;
    &amp;-item &#123;&#125;
  &#125;</code></pre></div>

<p><strong>通过对比可以看到，BEM命名使得代码结构清晰多了，并且能把代码的意图表达得很明确。</strong></p>
<h3 id="3-正确地使用BEM"><a href="#3-正确地使用BEM" class="headerlink" title="3. 正确地使用BEM"></a>3. 正确地使用BEM</h3><p>  举一个例子，你的手里拿着一本书，但你不能说这本书是人的一部分。这就好比在代码中，有一个元素刚好某个块中，但它本身并不属于这个块，按照BEM原则，此元素的命名不该包含进去：</p>
<div class="code-wrapper"><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">nav</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;nav&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;nav__menu&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;nav__menu__item&quot;</span>&gt;</span>首页<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
  <span class="hljs-comment">&lt;!-- 显示用户名 --&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;username&quot;</span>&gt;</span>XXX 你好！<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">nav</span>&gt;</span></code></pre></div>
                
              </div>
            
            <hr/>
            <div>
              <div class="post-metas my-3">
  
    <div class="post-meta mr-3 d-flex align-items-center">
      <i class="iconfont icon-category"></i>
      

<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/blog/categories/css/" class="category-chain-item">css</a>
  
  

      </span>
    
  
</span>

    </div>
  
  
</div>


              

              
                <div class="post-prevnext my-3">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/blog/version-detail.html" title="版本号的定义">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">版本号的定义</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/blog/const-for-es5.html" title="如何在 ES5 环境下实现一个const？">
                        <span class="hidden-mobile">如何在 ES5 环境下实现一个const？</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>

    <div class="side-col d-none d-lg-block col-lg-2">
      
  <aside class="sidebar" style="margin-left: -1rem">
    <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>



  </aside>


    </div>
  </div>
</div>





  



  



  



  



  







    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v" for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>

    

    
  </main>

  <footer>
    <div class="footer-inner">
  
    <div class="footer-content">
       <span>枫🍁川</span> <i class="iconfont icon-love"></i> <span>前端小白</span> 
    </div>
  
  
    <div class="statistics">
  
  

  
    
      <span id="busuanzi_container_site_pv" style="display: none">
        总访问量 
        <span id="busuanzi_value_site_pv"></span>
         次
      </span>
    
    
      <span id="busuanzi_container_site_uv" style="display: none">
        总访客数 
        <span id="busuanzi_value_site_uv"></span>
         人
      </span>
    
    
  
</div>

  
  
  
</div>
<script type="text/javascript" src="/blog/js/click-love.js"></script>

  </footer>

  <!-- Scripts -->
  
  <script  src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://lib.baomitu.com/jquery/3.6.0/jquery.min.js" ></script>
<script  src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script  src="/blog/js/events.js" ></script>
<script  src="/blog/js/plugins.js" ></script>


  <script  src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      
        typing(text);
      
    })(window, document);
  </script>




  
    <script  src="/blog/js/img-lazyload.js" ></script>
  




  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/tocbot/4.18.2/tocbot.min.js', function() {
    var toc = jQuery('#toc');
    if (toc.length === 0 || !window.tocbot) { return; }
    var boardCtn = jQuery('#board-ctn');
    var boardTop = boardCtn.offset().top;

    window.tocbot.init({
      tocSelector     : '#toc-body',
      contentSelector : '.markdown-body',
      headingSelector : CONFIG.toc.headingSelector || 'h1,h2,h3,h4,h5,h6',
      linkClass       : 'tocbot-link',
      activeLinkClass : 'tocbot-active-link',
      listClass       : 'tocbot-list',
      isCollapsedClass: 'tocbot-is-collapsed',
      collapsibleClass: 'tocbot-is-collapsible',
      collapseDepth   : CONFIG.toc.collapseDepth || 0,
      scrollSmooth    : true,
      headingsOffset  : -boardTop
    });
    if (toc.find('.toc-list-item').length > 0) {
      toc.css('visibility', 'visible');
    }
  });
</script>


  <script src=https://lib.baomitu.com/clipboard.js/2.0.10/clipboard.min.js></script>

  <script>Fluid.plugins.codeWidget();</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/anchor-js/4.3.1/anchor.min.js', function() {
    window.anchors.options = {
      placement: CONFIG.anchorjs.placement,
      visible  : CONFIG.anchorjs.visible
    };
    if (CONFIG.anchorjs.icon) {
      window.anchors.options.icon = CONFIG.anchorjs.icon;
    }
    var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
    var res = [];
    for (var item of el) {
      res.push('.markdown-body > ' + item.trim());
    }
    if (CONFIG.anchorjs.placement === 'left') {
      window.anchors.options.class = 'anchorjs-link-left';
    }
    window.anchors.add(res.join(', '));
  });
</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
    Fluid.plugins.fancyBox();
  });
</script>


  <script>Fluid.plugins.imageCaption();</script>

  <script  src="/blog/js/local-search.js" ></script>

  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>





<!-- 主题的启动项，将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script  src="/blog/js/boot.js" ></script>


  

  <noscript>
    <div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
  </noscript>
<script src="/blog/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/blog/live2dw/assets/chitose.model.json"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":true},"react":{"opacity":0.7},"log":false});</script></body>
</html>
